package com.vtc.session4;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;

import com.vtc.R;

public class ListViewActvity extends Activity{

	private ListView lvEmployee;
	@Override
	protected void onCreate(Bundle savedInstanceState) {	
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.listview_activity);		
		this.lvEmployee = (ListView) findViewById(R.id.lvEmployee);
		
		
		//ArrayAdapter<Employee> adapter = new ArrayAdapter<Employee>(this, android.R.layout.simple_list_item_1, arr);
		ListView1Adapter adapter = new ListView1Adapter(this);
		lvEmployee.setAdapter(adapter);
	}
}
